package com.zmm.zebulon.module.trade.biz.job.brokerage;

import cn.hutool.core.util.StrUtil;
import com.zmm.zebulon.module.trade.biz.service.brokerage.BrokerageRecordService;
import com.zmm.zebulon.starter.biz.tenant.core.job.TenantJob;
import com.zmm.zebulon.starter.job.core.handler.JobHandler;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * description: 佣金解冻 Job
 *
 * @author zebulon
 * package com.zmm.zebulon.module.trade.biz.job.brokerage
 * name: BrokerageRecordUnfreezeJob
 * date 2025/8/31 16:24
 */
@Component
public class BrokerageRecordUnfreezeJob implements JobHandler {

    @Resource
    private BrokerageRecordService brokerageRecordService;

    @Override
    @TenantJob
    public String execute(String param) {
        int count = brokerageRecordService.unfreezeRecord();
        return StrUtil.format("解冻佣金 {} 个", count);
    }

}
